﻿package src.event 
{
  import flash.events.Event;
  
  /**
   * 操作产品的事件
   * @author  MeatHill
   * @version 0.1(2009-07-10)
   */
  public class proOperateEvent extends Event 
  {
    public static const PRODUCT_OPERATE:String = "product_operate";
    public static const SHOW_ALT:String = "show_alt";
    public static const REMOVE_ALT:String = "remove_alt";
    
    private var _op_type:String = '';
    private var _title:String = '';
    private var _content:String = '';
    
    public function proOperateEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) { 
      super(type, bubbles, cancelable);
      
    }
    
    /*****************
     * properties
     * **************/
    public function get op_type():String {
      return _op_type;
    }
    public function set op_type(str:String):void {
      _op_type = str;
    }
    public function get title():String {
      return _title;
    }
    public function set title(str:String):void {
      _title = str;
    }
    public function get content():String {
      return _content;
    }
    public function set content(str:String):void {
      _content = str;
    }
    
    /*****************
     * methods
     * **************/
    public override function clone():Event { 
      var _evt:proOperateEvent = new proOperateEvent(type, bubbles, cancelable);
      _evt.title = _title;
      _evt.content = _content;
      return _evt;
    }
    public override function toString():String { 
      return formatToString("proOperateEvent", "type", "bubbles", "cancelable", "eventPhase"); 
    }
  }
}